﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucDanhSachThucPhamChucNang.ascx.cs"
    Inherits="ucControl_ucDanhSachThucPhamChucNang" %>
<div class="ContCW">
    <div class="titleContent">
        <div class="textContent">
            Thực phẩm chức năng</div>
     <%--   <div class="bnt_xemthem">
            <a href="#">
                <img src="images/button/bnt_xemthem.png" width="93" height="31" /></a></div>--%>
    </div>
    <div class="boxContentC1">
        <div class="boxContentW1">
            <div class="boxContentW1">
                <div class="SProduct">
                    <div class="SPLeft">
                        <div class="TextListBox">
                            Tuỳ chọn:
                        </div>
                        <div class="SPListB">
                            <select name="tuychon">
                                <option value="tugia">Từ giá</option>
                                <option value="300,000">300,000</option>
                                <option value="800,000">800,000</option>
                                <option value="1,300,000">1,300,000</option>
                                <option value="1,800,000">1,800,000</option>
                                <option value="2,300,000">2,300,000</option>
                                <option value="2,800,000">2,800,000</option>
                            </select>
                        </div>
                        <div class="SPListB">
                            <select name="tuychon">
                                <option value="giaden">Giá đến</option>
                                <option value="300,000">500,000</option>
                                <option value="800,000">8,500,000</option>
                                <option value="1,300,000">12,500,000</option>
                                <option value="1,800,000">16,500,000</option>
                                <option value="2,300,000">20,500,000</option>
                            </select>
                        </div>
                        <div class="SPListB">
                            <div class="button">
                                <a href="#">Tìm kiếm</a></div>
                        </div>
                    </div>
                    <div class="SPRight">
                        <div class="TextListBox">
                            Sắp xếp theo:
                        </div>
                        <div class="SPListB">
                            <select name="sapxep">
                                <option value="tensp">Tên sản phẩm</option>
                                <option value="300,000">Giá sản phẩm</option>
                            </select>
                        </div>
                        <div class="SPListB">
                            <a href="#">
                                <img src="images/icon/view-sort-ascending.png" width="13" height="16" /></a><a href="#"><img
                                    src="images/icon/descending.png" width="13" height="16" /></a></div>
                    </div>
                </div>
            </div>
            <div class="imgContent">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <asp:ListView runat="server" ID="lvItems" ItemPlaceholderID="groupPlaceholder" GroupItemCount="3"
                                GroupPlaceholderID="layoutTemplate" OnPagePropertiesChanged="lvItems_PagePropertiesChanged">
                                <LayoutTemplate>
                                    <table id="layoutTemplate" runat="server" border="0" cellpadding="0" cellspacing="0">
                                    </table>
                                </LayoutTemplate>
                                <GroupTemplate>
                                    <tr>
                                        <div id="groupPlaceholder" runat="server">
                                        </div>
                                    </tr>
                                </GroupTemplate>
                                <ItemTemplate>
                                    <td style="padding: 10px 0 15px 0px;">
                                        <asp:HyperLink ID="lnkItemDetails" runat="server" NavigateUrl=''>
                                            <div class="imgContent" price='<%# Eval("BaseSellingPrice") %>' matchedprice='0'
                                                code='<%# Eval("ItemID") %>'>
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td align="center" style="padding: 0px; height: 200px">
                                                            <table width="100%" border="0" cellspacing="0" cellpadding="5">
                                                                <tr>
                                                                    <td class="img_border">
                                                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "~/ChiTietSanPham.aspx?id=" + Eval("ItemID")+ "&idgroup="+Eval("IDGroup")  %>'>
                                                                            <asp:Image ID="img" runat="server" ImageUrl='<%# "~/ImageProcess.ashx?file=" + "~/Admin/images/Items/" + Eval("ImageURL") + "&width=100&heigh=100&dd=true" %>'
                                                                                AlternateText="No Image" /></asp:HyperLink>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <p>
                                                                            <%# Eval("ItemName") %>
                                                                        </p>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <div class="line4">
                                                                        </div>
                                                                        <p class="textR1">
                                                                            <strong>
                                                                                <%# double.Parse (Eval("BaseSellingPrice").ToString()).ToString("0,00.##") %>
                                                                                VNĐ </strong>
                                                                        </p>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                         <td align="center"> <!--class="bnt_dathang"-->
                                                            <table border="0" cellspacing="3" cellpadding="0">
                                                                <tr>
                                                                    <td width="1">
                                                                        <asp:HyperLink ID="lnk" runat="server" NavigateUrl='<%# "~/ChiTietSanPham.aspx?id=" + Eval("ItemID")+ "&idgroup=" + Eval("IDGroup")  %>'>
                                                                            <asp:Image ID="Image3" runat="server" ImageUrl="~/images/chitiet.png" />
                                                                        </asp:HyperLink>
                                                                    </td>
                                                                    <td>
                                                                      
                                                                       
                                                                    </td>
                                                                    <td  width="1">
                                                                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='' ToolTip="Thêm vào giỏ hàng">
                                                                            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/dathang.png" onclick='<%#string.Format("fn_AddToCart(\"{0}|{1}|{2}\")", Eval("ItemID").ToString(), Eval("BaseSellingPrice").ToString(),"0")%>' />
                                                                        </asp:HyperLink>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </asp:HyperLink>
                                    </td>
                                </ItemTemplate>
                            </asp:ListView>
                        </td>
                    </tr>
                   
                </table>
            </div>
        </div>
    </div>
    <div class="boxContentB">
    </div>
</div>

<script language="javascript" type="text/javascript">
    function fn_AddToCart(productCodeAndPrice) {
        PageMethods.SetShoppingCartSesstion(productCodeAndPrice, SetShoppingCart);
    }
</script>

